GIT tag

1. tag

git tag
git tag -l 'v.1.8.5'
git tag -a v0.1 -m 'my version 0.1'
git tag v1.4-lw
git show v0.1-lw
git show v0.1
git tag -a v0.01 350cb56421ab8a

注意:Tag 并不会传输到远程库上。

git push --tags
git push v0.01
git checkout -b version0.01 v0.01

注意:会产生分支

aming@aming-PC MINGW64 /d/scripts/test (version0.01)
$ git branch -v
  master      ccd16f1 rename README and add INSTALL.sh file
 version0.01 7691e4d version v0.01 branch